<?php

namespace App\Trip\Orders\BookOrders\Params;

use App\Trip\Enums\OrderBusiness;
use App\Trip\Enums\TripTypes;
use App\Trip\Orders\BookOrders\Params\AbstractOrderParam\AbstractMultiTripOrders;

class BookOrdersParam extends AbstractMultiTripOrders
{


    public function __construct(array $param)
    {
        $this->setOrders($param);
        $this->setTripId(generate_order_id(TripTypes::TRAIN, OrderBusiness::ORDER));
    }


    public function getOrders(): array
    {
        return $this->dealOrders($this->orders_data, 'App\Trip\Orders\BookOrders\Params\BookOrderParam');
    }
}